package lab2_prelab;

/**
 * <p>Title: Airplane</p>
 * Description: CS 235 Lab #2. 
 * 	    This class is used to illustrate encapsulation, 
 * 		inheritance and polymorphism.
 *      See the related Jet class.
 * @author This code is from "Head First Object Oriented Design"
 * @date   August 8th 2013
 */
public class Airplane {
	/**
	 * Data members: speed
	 */
	private int speed;
	
	/**
	 * Default constructor
	 */
	public Airplane(){
	}
	
	/**
	 * setSpeed - set method for data member speed
	 * @param speed
	 */
	public void setSpeed(int speed){
		this.speed = speed;
	}
	
	/**
	 * getSpeed - get method for data member speed
	 * @return
	 */
	public int getSpeed(){
		return speed;
	}
	
	/**
	 * toString - method to convert data in an Airplane object
	 *            to a String that can be printed or displayed
	 *            somehow.
	 */
	public String toString(){
		return "Airplane speed is " + speed;
	}
}
